var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');


var schema = new mongoose.Schema({
    title:String,
    content:String,
    date: { type: Date, default: Date.now },
    newsId:mongoose.Schema.ObjectId,
    cateId:String
});

schema.plugin(mongoosePaginate);

module.exports =  mongoose.model('Comments',schema);